package com.example.alienware.a115gyh.retrofitservice;

import com.xdw.ui_demo.beans.Dish;
import com.xdw.ui_demo.beans.Result;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by 杨翌东 on 2018/9/29.
 */

public interface RetrofitService {
    @GET
            (
                    "dishes"
            )
    Call<List<Dish>> getDishes();

    @GET
            (
                    "dish"

            )
    Call<Result> getDish(
            @Query
                    (
                            "id"
                    ) String id);

}
